function initations(){
    for(let i in HallWay.hallWay){
        let cli = HallWay.hallWay[i][6].classRooms;console.log(cli)
        for(let ii in cli){
            if(cli[ii] == undefined) continue;
            if(ii>=2){
                cli[ii].purpose = [1,8,0]
            }else{
                //cli[ii].purpose = [0,3,0]
                cli[ii].purpose =[{
                    p:0.75,
                    purpose:[0,3,0]
                },{
                    p:0.25,
                    purpose:[0,4,1]
                }];
            }
            
        }
        
    }
    let h5=HallWay.hallWay[5][2].classRooms
    for(let i in h5){
        h5[i].population=0;
    }
}
function newPlan(){
    let mainPoint={
        2:[
            null,null,
            [[0],[1]],
            [[0],[1,1,0,0,0],[1,1,0],[1,1,0,0,0]],
            [[0],[1,1,0,0,0],[1,1,0],[1,1,0]]
        ],
        5:[
            null,null,
            [[0],[1],[1],[1,4,0,3,0]],
            [[0],[1],[1],[1,4,0,3,0]],
            [[0],[0],[1],[1,4,0,3,0]],
            [[0],[0],[1],[1,4,0,3,0]]
        ],
        6:[
            null,null,
            [[1,8,0],[1,8,0],[1,7,1],[1,7,1]],
            [null,[1,7,1],[1,7,1],[1,7,1]],
            [[1,8,0],[1,8,0],[1,7,1],[1,7,1]],
            [null,[1,7,1]]
        ]
    }
    for(let i in mainPoint){
        for(let ii in HallWay.hallWay){
            let ki = HallWay.hallWay[ii][i].classRooms;
            for(let iii in ki){
                if(mainPoint[i][ii] == null || mainPoint[i][ii][iii] == null) continue;
                //console.log(i,ii,iii,mainPoint[i][ii][iii])
                ki[iii].purpose=mainPoint[i][ii][iii];
            }
        }
    }
}